c348be25116dfdf560763f4efbf3b07077e9de4f,spring-test-mvc/src/test/java/org/springframework/test/web/servlet/samples/standalone/AsyncTests.java,AsyncTests,testCallable,#,55
Before Change
@Test
public void testCallable() throws Exception {
this.mockMvc.perform(get("/1").param("callable", "true"))
.andExpect(status().isOk())
.andExpect(request().asyncStarted())
.andExpect(request().asyncResult(new Person("Joe")));
}
After Change
@Test
public void testCallable() throws Exception {
MvcResult mvcResult = this.mockMvc.perform(get("/1").param("callable", "true"))
.andExpect(request().asyncStarted())
.andExpect(request().asyncResult(new Person("Joe")))
.andReturn();
this.mockMvc.perform(asyncDispatch(mvcResult))
.andExpect(status().isOk())